﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AplicacionMVC.Models.ReservaAdic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>

    <% using (Html.BeginForm()) {%>
         <%: Html.ValidationSummary(true, "No se creó la cuenta. Corrija los errores e inténtelo de nuevo.") %>
         <div style="color:Red; font-weight:bold;">   <%: this.Session["reserva"]%></div>

        <fieldset>
            <legend>Fields</legend>
            
            
            
              <div class="editor-field">
                <%: Html.TextBoxFor(model => model.id_reserva, new { style = "visibility:hidden" })%>
          
            </div>

            <div class="editor-label">
               <%: Html.LabelFor(model => model.sala) %>
            </div>
            <div class="editor-field">
             
                <%: Html.DropDownList("Sala", (IEnumerable<SelectListItem>)TempData["Salas"])%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.turno) %>
            </div>
            <div class="editor-field">
               <%: Html.DropDownList("Turno", (IEnumerable<SelectListItem>)TempData["Turnos"])%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.dia) %>
            </div>
            <div class="editor-field">
                 <%: Html.DropDownList("Dia", (IEnumerable<SelectListItem>)TempData["Dias"])%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.observacion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.observacion) %>
                <%: Html.ValidationMessageFor(model => model.observacion) %>
            </div>
            
            <p>
                <input type="submit" value="Edit" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

